package hnlg.com.cn.systemmanage.qibiemanage.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import hnlg.com.cn.model.QibieVo;
import hnlg.com.cn.systemmanage.qibiemanage.mapper.QibieMapper;

@Service("QibieService")
@Transactional(value="txManager",rollbackFor=Exception.class)
public class QibieServiceImpl implements IQibieService{
    @Autowired QibieMapper obj;
	@Override
	
	public boolean addQibie(QibieVo vo) throws Exception {
		return obj.addQibie(vo);
	}

	@Override
	public boolean deleteQibie(String id) throws Exception {
	    return obj.deleteQibie(id); 
	}

	@Override
	public boolean updateQibie(QibieVo vo) throws Exception {
		return obj.updateQibie(vo);
	}

	@Override
	@Transactional(propagation=Propagation.NOT_SUPPORTED,readOnly=true)
	public List<QibieVo> queryqibie(QibieVo vo) throws Exception {
		return obj.queryqibie(vo);
	}

	@Override
	public boolean deletebatch(String[] arr) throws Exception {
		return obj.deletebatch(arr);
	}

}
